package tests.Bggo.Android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageButton;
import android.widget.Toast;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;

public class main extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        
        Window janela = getWindow();
        
        janela.requestFeature(Window.FEATURE_LEFT_ICON);
        
        setContentView(R.layout.main);
        
        janela.setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, R.drawable.housetopapp);
        

        final ImageButton botaoinfo = (ImageButton) findViewById(R.id.buttoninfo);
        botaoinfo.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                //Toast.makeText(main.this, R.string.test, Toast.LENGTH_LONG).show();
                
            	startActivity(new Intent(main.this,info.class));  
            	
            }
        });
        
        
        final ImageButton botaobios = (ImageButton) findViewById(R.id.buttonbios);
        botaobios.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                //Toast.makeText(main.this, R.string.test, Toast.LENGTH_LONG).show();
                
            	startActivity(new Intent(main.this,bios.class));  
            	
            }
        });
        
        final ImageButton botaorecaps = (ImageButton) findViewById(R.id.buttonrecaps);
        botaorecaps.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                //Toast.makeText(main.this, R.string.test, Toast.LENGTH_LONG).show();
                
            	startActivity(new Intent(main.this,recaps.class));  
            	
            }
        });
        
        final ImageButton botaost = (ImageButton) findViewById(R.id.buttonsound);
        botaost.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                //Toast.makeText(main.this, R.string.test, Toast.LENGTH_LONG).show();
                
            	startActivity(new Intent(main.this,st.class));  
            	
            }
        });
        
        final ImageButton botaonews = (ImageButton) findViewById(R.id.buttonnew);
        botaonews.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                //Toast.makeText(main.this, R.string.test, Toast.LENGTH_LONG).show();
                
            	startActivity(new Intent(main.this,news.class));  
            	
            }
        });
       

        
        
    }
    
}
        
        
        
 